# Contributor: Ted Trask <ttrask01@yahoo.com>
# Maintainer: Ted Trask <ttrask01@yahoo.com>
pkgname=acf-db
pkgver=0.2.1
pkgrel=4
pkgdesc="Web-based system administration interface for databases"
url="https://gitlab.alpinelinux.org/acf/acf-db"
arch="noarch"
license="GPL-2.0-only"
options="!check" # no test suite
depends="acf-core acf-db-lib"
subpackages="$pkgname-lib"
source="https://gitlab.alpinelinux.org/acf/acf-db/-/archive/v$pkgver/acf-db-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

package() {
	make DESTDIR="$pkgdir" install
}

lib() {
	pkgdesc="ACF database support library"
	depends="acf-core lua acf-lib"
	mkdir -p "$subpkgdir"/usr/share/acf/lib/
	mv "$pkgdir"/usr/share/acf/lib/* \
		"$subpkgdir"/usr/share/acf/lib/
}

sha512sums="
71b1189dee362c8f5ccf8b374c83c8f3307c2d112bdb9a83823418a27a44dca59940d26fb3736e85dac7f1eafb6c66d318ed67013a9f9183e2c62d18c862d469  acf-db-v0.2.1.tar.gz
"
